import React, { Component } from 'react';
import { NavLink } from 'react-router-dom';

export default class MyNavLink extends Component {
    render() {
        return <div>
            {/* {...}遍历对象 */}
            <NavLink className={({ isActive }) => { return isActive ? "list-group-item highlight" : "list-group-item" }} {...this.props} />
        </div>;
    }
}
